/*
** egg.c for egg.c in /home/vriely/Dropbox/work/Unix/Zappy_rendu/serv-src
**
** Made by Samuel Vrielynck
** Login   <vriely_s@epitech.net>
**
** Started on  Sun Jul 15 16:30:49 2012 Samuel Vrielynck
** Last update Thu Jul 19 17:30:01 2012 pierrick druart
*/

#include	<stdlib.h>

#include	"server.h"

t_egg		*new_egg(unsigned int id, t_coord coord, unsigned int time)
{
  t_egg		*egg;

  egg = (struct s_egg *)malloc(sizeof(t_egg));
  if (egg != NULL)
  {
    egg->action = 600 * MILLI / time;
    egg->coord = coord;
    egg->id = id;
  }
  return (egg);
}
